﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace IslandInterloper.Engine
{
    internal abstract class GameClientCollectionIntKeyed<ValueType> : GameClientCollection<int, ValueType> where ValueType : GameClient
    {
        internal GameClientCollectionIntKeyed(Game theGame)
            : base(theGame)
        {
        }
        internal GameClientCollectionIntKeyed(Game theGame, XElement element)
            : base(theGame, element)
        {
        }
        protected override int LoadKeyFromXElement(System.Xml.Linq.XElement element)
        {
            return Utilities.XElementToInt(element.Element(GameXNames.id));
        }
    }
}
